package extends01;

public class Teacher extends Person{
    //教学方法
    public void teach(){
        System.out.println(getName()+"教Java");
    }
}
